package com.topvision.service.zwan;

import com.topvision.annotation.DataSource;
import com.topvision.db.DataSourceConstants;
import com.topvision.model.zwan.Companyinfo;
import com.topvision.util.Query;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

/**
 * 
 * 
 * @author shengwm
 * @email 179653076@qq.com
 * @date 2017-08-07 13:32:20
 */
@DataSource(DataSourceConstants.ORACLE_PORTAL_SLAVE)
public interface CompanyinfoService {
	
	Companyinfo queryObject(BigDecimal companyid);
	
	List<Companyinfo> queryList(Map<String, Object> map);
	
	int queryTotal(Map<String, Object> map);
	
	void save(Companyinfo companyinfo);
	
	void update(Companyinfo companyinfo);
	
	void delete(BigDecimal companyid);
	
	void deleteBatch(BigDecimal[] companyids);

	int addCompany(Map<String, Object> params);

    List<Companyinfo> queryByParam(Query query);

    List<Map<String,Object>> allList();
}
